<!DOCTYPE html>
<html>
	{{- partial "head.html" . -}}

	<body>
		{{- partial "header.html" . -}}
		<div class="section">
			{{- partial "site-info.html" . -}}

			<div class="container">
				<div class="content">
					{{ $paginator := .Paginate (where (where .Site.Pages "Type" "posts") "IsPage" true) }}
					{{range $paginator.Pages}}
					<div class="content-card">
						<div class="content-info">
							{{if .Params.author}}
							<p>{{.Params.author}}</p>
							{{end}}
							<ul>
								<li>Last Update on {{.Lastmod.Format "2006 Jan 2 15:04:05"}}</li>
								<li>{{.ReadingTime}} min read</li>
								<li>{{.Params.tags}}</li>
							</ul>
						</div>
						<a href="{{.Permalink}}">
							<!-- 图片 -->
							{{if .Params.image}}
							<img src={{.Params.image}} />
							{{end}}
							<h2>{{.Title}}</h2>
							<!-- 文章概述 -->
							<p>
								{{if .Params.description}}
								{{.Params.description}}
								{{else}}
									{{.Summary}}
									{{end}}
							</p>
							<p class="content-card-date">发表于{{.Date.Format "2006-01-02"}}</p>
						</a>
					</div>
					{{end}}


				</div>
			</div>
		</div>
		{{- partial "footer.html" . -}}
	</body>
</html>
